﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Register Assembly="FlashControl" Namespace="Bewise.Web.UI.WebControls" TagPrefix="Bewise" %>
<script runat="server">
 
    protected void Page_Load(object sender, EventArgs e)
    {
        if (ViewData["vars"].Equals("3"))
        {
            Timer1.Interval = int.MaxValue; //999999999;
        }
    }      
    

</script>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    GameRoom
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        GameRoom</h2>
    
    <fieldset>
        <legend>Game</legend>

        <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:Timer ID="Timer1" Interval="3000" runat="server">
        </asp:Timer>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <!--<%= ViewData["vars"] %>-->
                    
            </ContentTemplate>
        </asp:UpdatePanel>
        </form>
         <% if (ViewData["vars"].Equals("3")) {%>
            <Bewise:FlashControl ID="FlashControl1" runat="server" Height="500px" 
            MovieUrl="~/Ressources/BomberMan.swf" Width="500px" />
            <param name="flashvars" value="<%= ViewData["vars"] %>" />
        <% }%>
    </fieldset>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="alerts" runat="server">
</asp:Content>
